package com.majun.huaxishe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.majun.huaxishe.entity.Photos;
import com.majun.huaxishe.entity.vo.PhotosVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 照片表 Mapper 接口
 * </p>
 *
 * @author 马骏
 * @since 2024-02-29
 */
public interface PhotosMapper extends BaseMapper<Photos> {

    List<PhotosVO> countByAlbumId(List<Integer> albumIds);

    Page<PhotosVO> queryPage(Page<PhotosVO> objectPage,
                            @Param("name") String name,
                            @Param("albumId") Integer albumId);
}
